Dev_Tasks	
The PLC ladder program sends the Data Commands using the COMREQ function. It should then be executed by a one-shot to prevent sending the data to the High Speed Counter multiple times.
Reference: Series 90-70 High Speed Counter Users Manual GFK-1062A.
#END#

Wait_Flag	
This flag determines whether PLC will wait until the device serial ports receive the intended data before continuing. The request can either send a message and wait for a reply, or send a message and continue without waiting for a reply. If the Command Block specifies that the program will not wait for a reply, the Command Block contents are sent to the device and ladder program execution resumes immediately. This is referred to as NOWAIT mode. If the Command Block specifies that the program will wait for a reply, the Command Block contents are sent to the targeted device and the CPU waits for a reply for a maximum length of time specified in the Command Block. If the device does not respond in that time, ladder program execution resumes. This is referred to as WAIT mode.
#END#

Idle_Tmout	
The idle timeout value is the maximum time the PLC waits for the device to acknowledge receipt of the request. For NOWAIT, this value is not used. (Any timeout value is ignored; it can be zero.) If WAIT is selected, this word specifies the idle timeout period, in 100-microsecond increments.
#END# 

Max_Comm_Tm	
This word contains the maximum amount of time the program should hold the window open when the device is busy. For NOWAIT, this value is not used. (Any timeout value is ignored; it can be zero.) If WAIT is selected, this word specifies the maximum time in 100 microsecond increments.
#END#

Command_Word_EPFI0	
Select the Preset number
#END#

Command_Word_EPNI0	
Select the Preset number
#END#

Command_Word_LOD0	
Constant 32Hex
#END#

Command_Word_LPFV0	
Select the Preset number
#END#

Command_Word_LPN0	
Select the Preset number
#END#

Command_Word_LPV0	
Select the counter number
#END#

Command_Word_LT0	
Select the counter number
#END#

Command_Word_LV0	
Select the counter number
#END#

Null Command	
This is the default %AQ data command. Since the %AQ data is transferred each PLC sweep, it is a good idea to have the Null command present when not executing a specific data command to avoid inadvertent execution. All data is ignored with a Null command.
#END#

Load Accumulator Value	
This command places a 16-bit value into a counter accumulator. The value must be within the Count Limits, or an error will be returned and the command ignored.
#END#

Load High Limit	
This command sets the highest value to which a counter will count. Counts that would cause the counter to go higher are ignored or cause the accumulator to roll over to the
Low Limit depending on whether the counter is configured for Single-shot or Continuous count mode. The High Limit can be any 16-bit value with the following restrictions: it must be greater than the Low Limit, the counters Preload value must lie between it and the Low Limit, and all preset outputs which are assigned to the counter must have preset ON and OFF values which lie between it and the Low Limit. If a restriction is not met, an error will be generated and the command ignored. If the range between the Low Limit and the new High Limit excludes the Accumulator, the Accumulator will be set to the Low Limit and no error is generated.
#END#

Load Low Limit	
This command sets the lowest value to which a counter will count. Counts that would cause the counter to go lower are ignored or cause the accumulator to roll over to the
High Limit depending on whether the counter is configured for Single-shot or Continuous count mode. The Low Limit can be any 16-bit value with the following restrictions: it must be less than the High Limit, the counters Preload value must lie between it and the High Limit, and all preset outputs which are assigned to the counter must have preset ON and OFF values which lie between it and the High Limit. If a restriction is not met, an error will be generated and the command ignored. If the range between the new Low Limit and the High Limit excludes the Accumulator, the Accumulator will be set to the Low Limit and no error is generated.
#END#

Load Accumulator Increment	
The Accumulator Increment performs a one-shot adjustment to the accumulator. Only byte 2 is used for data, all other data bytes are ignored. The one-shot increment may be performed at any time, even when counting at maximum rate. If the offset causes the counter to exceed its limits, the excess is treated just like any other overflow, i.e., in
Continuous mode the Accumulator rolls over to the other limit and in Single-shot mode the Accumulator does not pass the limit.
#END#

Increment
Enter Increment
#END#

Set Counter Direction	
This command determines whether a counters accumulator increments or decrements when there is a rising edge on its Count Pulse input. The direction may be set at any time.
#END#

Counter_Direction
Select the counter direction
#END#

Load Timebase	
This command sets the timebase. The timebase is the number of milliseconds for which the counter counts input pulses and then returns in the Counts per Timebase register. If the timebase is 1000, or 1 second, the Counts per Timebase register returns the number of counts detected in each 1 second period. Any non-zero 16-bit value may be used as the timebase.
#END#

Load Velocity	
A velocity increment is an internal count generator, or a continuous accumulator increment. Each millisecond, 0.1% of the increment value is added to the accumulator.
A value of 0 will stop the velocity increment. Counts from the velocity increment are cumulative with counts coming in from the Count Pulse input. Note that counts generated by the velocity increment are not reflected in the Counts per Timebase register.
#END#

Load Preset ON Value	
This command sets the preset output turn on points within a counters range. Preset values can be any value between the high and low limits, inclusive.
#END#

Enable Disable Preset ON Interrupt	
This command enables or disables interrupts resulting from Preset output transitions. For example, if Preset ON interrupts are enabled, then a low to high transition of the 3 Preset ON output will generate an interrupt to the CPU.
#END#

Preset_ON_Interrupt
Select Preset ON Interrupt
#END#

Preset_OFF_Interrupt
Select Preset OFF Interrupt
#END#

Load Preset OFF Value	
This command sets the preset output turn OFF points within a counters range. Preset values can be any value between the high and low limits, inclusive.
#END#

Enable Disable Preset OFF Interrupt	
This command enables or disables interrupts resulting from Preset output transitions. For example, if Preset OFF interrupts are enabled, then a low to high transition of the 3 Preset OFF output will generate an interrupt to the CPU.
#END#

Load Preload Value	
The Load Preload command sets the value to which the Accumulator will be set when a positive edge occurs on the Preload input. The value must be between the High and Low Limits inclusive, or an error will be returned and the command ignored.
#END#

Load Oscillator Divider	
This command changes the frequency of the square wave oscillator signal. The frequency generated is 1 megahertz (1 MHz) divided by the oscillator divider. Thus to get 50 Hz, the oscillator divider should be 20000.
#END#

CR_Task	
Task number for commreq function block
#END#

Command_Word_Null	
Constant 0
#END#

Data_24	
Enter 24 bit data. Range -100000 to 100000 counts per second
#END#

Data_16	
Enter 16 bit data
#END#

Command_Word_LAV0	
Select the counter number
#END#

Command_Word_LH0	
Select the counter number
#END#

Command_Word_LL0	
Select the counter number
#END#

Command_Word_LAI0	
Select the counter number
#END#

Command_Word_SCD0	
Select the counter number
#END#
